import java.util.Random;

public class pp38
{
  public static void main(String []args)
  {
    Random generator = new Random();
    int num1;
    double discriminant,root1,root2,root3;

    num1 = generator.nextInt(20) + 20;
 
    root1 = Math.sin(num1);
    root2 = Math.cos(num1);
    root3 = Math.tan(num1);
    System.out.println("sin " + root1); 
    System.out.println("cos " + root2);
    System.out.println("tan " + root3);
   }
}
